<#import "../../layout/single.ftl" as layout>
<#import "../micros/macros.ftl" as micro>
<@layout.single title="选择办理人员" javascripts=["plugins/chosen/chosen.jquery.js"] css=["css/plugins/chosen/chosen.css"]>
<div class="container-fluid" style="padding-top: 16px;">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox">
                <div class="ibox-title">
                    <h5>
                        <#if selectType=="selectSingleUser" || selectType=="selectMultiUser">
                            选择下一节点办理用户
                        <#else >
                            选择下一节点办理用户组
                        </#if>
                    </h5>
                </div>
                <div class="ibox-content">
                    <form method="post" class="form-horizontal" name="selectUserForm">
                        <input type="hidden" name="assigneeType" value="${selectType}">
                        <div class="form-group">
                            <#if selectType=="selectSingleUser"><#--选择单个用户-->
                                <@micro.chosen placeholder="选择一个办理用户" multiple=false options=options name="assignees"/>
                            <#elseif selectType=="selectMultiUser"><#--选择多个用户-->
                                <@micro.chosen placeholder="选择一个或多个办理用户" multiple=true options=options name="assignees"/>
                            <#elseif selectType=="selectSingleGroup"><#--选择单个用户组-->
                                <@micro.chosen placeholder="选择一个用户组" multiple=false options=options name="assignees"/>
                            <#elseif selectType=="selectMultiGroup"><#--选择多个用户组-->
                                <@micro.chosen placeholder="选择一个或多个办理用户组" multiple=true options=options name="assignees"/>
                            <#else>
                            </#if>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<script>
    laydate.render({
        elem: "#costtime",
        showBottom: true,
        max: new Date().getTime(),
        type: "date"
    });

    $(function () {
    });
</script>
</@layout.single>